package com.henry.web.vo;

import java.io.Serializable;

/**
 *
 */
public class Response<T> implements Serializable {

    private static final long serialVersionUID = -3700367810963582196L;

    private Boolean isSuccess = false;
    private Integer code = 500;
    private String msg;
    private String v;
    private T data;
    private boolean isDecrypt;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess() {
        this.isSuccess = true;
        this.code = 200;
    }

    public void setFail() {
        this.isSuccess = false;
    }

    public boolean isDecrypt() {
        return isDecrypt;
    }

    public void setDecrypt(boolean decrypt) {
        isDecrypt = decrypt;
    }
}
